<template>
  <div
    style="height: 100%;width: 100%;"
    <IframeBox
    :url="url"
    :onload="onload"
  ></IframeBox>
  </div>
</template>
<script>
import IframeBox from './index.vue'
export default {
  components: {
    IframeBox
  },
  data() {
    return {
      url: './cesium3/index.html'
    }
  },
  methods: {
    onload(Cesium, Comp, viewer, iframe) {
      console.log('gis2 成功')
      const obj = {
        Cesium, Comp, viewer, iframe
      }
      this.$emit('load', obj)
      this.$store.commit('SET_CESIUM_DATA', obj)
      this.$store.commit('SET_CESIUM_LOADED', true)
    }
  }
}
</script>
<style>

</style>
